package cn.itcast.erp.exception;

import org.springframework.validation.BindingResult;

/**
 * 全局异常处理
 * @author 周昌洋
 * @date 2019/6/14
 */
public class AuthenticationException extends RuntimeException {


    private String mesage;
    private BindingResult result;


    public AuthenticationException(String mesage) {

        this.mesage = mesage;
    }

    public AuthenticationException() {
    }

    public AuthenticationException(BindingResult result) {
        this.result = result;
    }

    public String getMesage() {
        return mesage;
    }

    public void setMesage(String mesage) {

        this.mesage = mesage;
    }

    public BindingResult getResult() {
        return result;
    }

    public void setResult(BindingResult result) {
        this.result = result;
    }
}
